package cn.myfirefly.moming.portal.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import cn.myfirefly.core.entity.BasePO;

@Entity
@Table(name = "mm_function")
public class MMFunction extends BasePO implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3228912357122540603L;
	private Integer funSn;
	private String funName;
	private String funId;
	private String parentFunId;
	private String linkPage;
	private char displayFlag;
	private int funIndex;
	private String funDescription;
	private String openIcon;
	private String closeIcon;
	private Integer systemId;

	public MMFunction() {
	}

	public MMFunction(String funName, String funId, char displayFlag, int funIndex) {
		this.funName = funName;
		this.funId = funId;
		this.displayFlag = displayFlag;
		this.funIndex = funIndex;
	}

	public MMFunction(String funName, String funId, String parentFunId,
			String linkPage, char displayFlag, int funIndex,
			String funDescription, String openIcon,
			String closeIcon, String createBy, Date createDate,
			String modifyBy, Date modifyDate, Integer systemId) {
		this.funName = funName;
		this.funId = funId;
		this.parentFunId = parentFunId;
		this.linkPage = linkPage;
		this.displayFlag = displayFlag;
		this.funIndex = funIndex;
		this.funDescription = funDescription;
		this.openIcon = openIcon;
		this.closeIcon = closeIcon;
		this.setCreateBy(createBy);
		this.setCreateDate(createDate);
		this.setModifyBy(modifyBy);
		this.setModifyDate(modifyDate);
		this.systemId = systemId;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "fun_sn", unique = true, nullable = false)
	public Integer getFunSn() {
		return this.funSn;
	}

	public void setFunSn(Integer funSn) {
		this.funSn = funSn;
	}

	@Column(name = "fun_name", nullable = false, length = 50)
	public String getFunName() {
		return this.funName;
	}

	public void setFunName(String funName) {
		this.funName = funName;
	}

	@Column(name = "fun_id", nullable = false, length = 200)
	public String getFunId() {
		return this.funId;
	}

	public void setFunId(String funId) {
		this.funId = funId;
	}

	@Column(name = "parent_fun_id", length = 200)
	public String getParentFunId() {
		return this.parentFunId;
	}

	public void setParentFunId(String parentFunId) {
		this.parentFunId = parentFunId;
	}

	@Column(name = "link_page", length = 500)
	public String getLinkPage() {
		return this.linkPage;
	}

	public void setLinkPage(String linkPage) {
		this.linkPage = linkPage;
	}

	@Column(name = "display_flag", nullable = false, length = 1)
	public char getDisplayFlag() {
		return this.displayFlag;
	}

	public void setDisplayFlag(char displayFlag) {
		this.displayFlag = displayFlag;
	}

	@Column(name = "fun_index", nullable = false)
	public int getFunIndex() {
		return this.funIndex;
	}

	public void setFunIndex(int funIndex) {
		this.funIndex = funIndex;
	}

	@Column(name = "fun_description", length = 1024)
	public String getFunDescription() {
		return this.funDescription;
	}

	public void setFunDescription(String funDescription) {
		this.funDescription = funDescription;
	}

	@Column(name = "open_icon", length = 50)
	public String getOpenIcon() {
		return this.openIcon;
	}

	public void setOpenIcon(String openIcon) {
		this.openIcon = openIcon;
	}

	@Column(name = "close_icon", length = 50)
	public String getCloseIcon() {
		return this.closeIcon;
	}

	public void setCloseIcon(String closeIcon) {
		this.closeIcon = closeIcon;
	}

	@Column(name = "system_id", nullable = false)
	public Integer getSystemId() {
		return systemId;
	}

	public void setSystemId(Integer systemId) {
		this.systemId = systemId;
	}

}
